home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 23 / AMIGAplus Sonderheft 23 (2000)(Falke)(DE)[!].iso / c / lavd.h < prev    next >
C/C++ Source or Header  |  2000-01-01  |  538b  |  30 lines

  1. #ifndef LAVD_H
  2. #define LAVD_H
  3.  
  4. typedef enum ReqType {
  5. LAV_STOP, LAV_LOAD, LAV_LOADS, LAV_UP, LAV_ALL
  6. } ReqType;
  7.  
  8. /* 
  9.     LAV_STOP: Quit.
  10.     LAV_LOAD: Return the load average now.
  11.     LAV_LOADS: Return all three load averages.
  12.     LAV_UP: Return the number of seconds the system has been up.
  13.     LAV_ALL: Return LAV_LOAD and LAV_UP.
  14. */
  15.  
  16. /* Structure of the messages passed to and from the demon. */
  17.  
  18. typedef struct lavdmsg {
  19.     struct Message lm_Message;
  20.  
  21.     ReqType    Class;
  22.  
  23.     ULONG    Uptime;
  24.     int    L1;    /* Load averages. */
  25.     int    L2;
  26.     int    L3;
  27. } lavdMsg;
  28.  
  29. #endif
  30.